package com.hdu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdu.entity.Music;
import com.hdu.pojo.PageBean;
import com.hdu.vo.Cartoon;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 歌曲实体类 服务类
 * </p>
 *
 * @author xiaobai
 * @since 2025-02-07
 */
public interface IMusicService extends IService<Music> {
    PageBean<Music> page(Integer current, Integer size, String name);

    List<Music> hotMusic();

    void addCount(String id);

//    List<Song> searchMusic(String name, String page);

    PageBean<Cartoon> searchCartoon(String name, String page) throws IOException;

    List<Cartoon> searchComics(String name) throws IOException;

    Cartoon detailCartoon(String id) throws IOException;

    Cartoon detailComics(String id) throws IOException;

    String videoPath(String id) throws IOException;

    List<String> comicsPath(String id, String comicsId) throws IOException;
}